package com.bkitmobile.kesu.android.ClassInfo;

import java.io.Serializable;

public class PlaceShortInfo implements Serializable{
	private String type, address, name, dist;
	private double longtitude, latitude;
	private PlaceInfo pi;
	
	public PlaceShortInfo(String type, String address, String name, double longtitude, double latitude) {
		this.type = type;
		this.address = address;
		this.name = name;
		this.setLongtitude(longtitude);
		this.setLatitude(latitude);
		dist = "";
		pi = null;
	}
	public void setPi(PlaceInfo pi) {
		this.pi = pi;
	}
	public PlaceInfo getPi() {
		return pi;
	}
	public String getType() {
		return type;
	}
	public String getAddress() {
		return address;
	}
	public String getName() {
		return name;
	}
	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}
	public double getLatitude() {
		return latitude;
	}
	public void setLongtitude(double longtitude) {
		this.longtitude = longtitude;
	}
	public double getLongtitude() {
		return longtitude;
	}
	public int getLongE6() {
		return (int) (longtitude * 1E6);
	}
	public int getLatE6() {
		return (int) (latitude * 1E6);
	}
	public void setDist(String dist) {
		this.dist = dist;
	}
	public String getDist() {
		return dist;
	}
	
}
